<?php
namespace app\admin\Model;

use think\Model;

Class ArticleModel extends Model{
    protected $name = 'article';
    protected $autoWriteTimestamp = true;
    public function Category(){
        return $this->hasOne('Article__CategoryModel','category_id','category_id');
    }
}